import request from "../utils/request";

export function getDetail(id) {
  return request({
    url: "/goods/detail",
    method: "get",
    params: {
      id: id,
    },
  });
}

export function addGoods(data) {
  return request({
    url: "/cart/add",
    method: "post",
    data,
    headers:{
      "Content-Type": "application/json",
    }
  });
}
